package pro.lingwu.station.dto.db;

import io.swagger.annotations.ApiModel;
import lombok.*;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import javax.validation.constraints.Size;
import java.sql.Date;

/**
 * @author @lingwu
 * @date created in 2021/11/15
 */
@ApiModel("Bus")
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class Bus {

    @NotNull
    @Size(max = 8, min = 8)
    private String busNum;

    @NotNull
    @Positive
    private Integer persons;

    @NotNull
    private Date buyDate;

}
